package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InvoiceSumMapper;
import com.ruoyi.system.domain.InvoiceSum;
import com.ruoyi.system.service.IInvoiceSumService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-02
 */
@Service
public class InvoiceSumServiceImpl implements IInvoiceSumService 
{
    @Autowired
    private InvoiceSumMapper invoiceSumMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public InvoiceSum selectInvoiceSumById(Long id)
    {
        return invoiceSumMapper.selectInvoiceSumById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param invoiceSum 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<InvoiceSum> selectInvoiceSumList(InvoiceSum invoiceSum)
    {
        return invoiceSumMapper.selectInvoiceSumList(invoiceSum);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param invoiceSum 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertInvoiceSum(InvoiceSum invoiceSum)
    {
        return invoiceSumMapper.insertInvoiceSum(invoiceSum);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param invoiceSum 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateInvoiceSum(InvoiceSum invoiceSum)
    {
        return invoiceSumMapper.updateInvoiceSum(invoiceSum);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceSumByIds(Long[] ids)
    {
        return invoiceSumMapper.deleteInvoiceSumByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceSumById(Long id)
    {
        return invoiceSumMapper.deleteInvoiceSumById(id);
    }
}
